# Global config
class Config
  include Mongoid::Document
  include Mongoid::Timestamps
  field :page_size, type: Integer
  field :name, type: String
  def self.current_page_size
    config = Config.find_or_create_by(name: 'default')
    config.page_size
  end
end
